﻿using System.Data;
using System.Data.SqlClient;
using JetBrains.Annotations;

namespace StreetPacMan.Server
{
    public interface IConnectionProvider
    {
        IDbConnection GetConnection();
    }
    
    [UsedByIoc]
    public  class ConnectionProvider : IConnectionProvider
    {
        public IDbConnection GetConnection()
        {
            return new SqlConnection(
                "Data Source=msowv187.012hosting.com;Initial Catalog=guystei_pacman;Persist Security Info=True;User ID=guystei_pacman;Password=s123456");
        }
    }
}